/******************************************************************************
*
*               Copyright Mentor Graphics Corporation 2003
*                           All rights reserved
*
*   THIS WORK CONTAINS TRADE SECRETS AND PROPRIETARY INFORMATION WHICH IS
*    THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS
*                        SUBJECT TO LICENSE TERMS
*
*******************************************************************************

*******************************************************************************
* FILE NAME                                                          VERSION
* act.c                                                                1.1
*
* COMPONENT
* ANSI/ISO C test application
*
* DESCRIPTION
* Main file for calling/running the different tests selected in act_test.h
*
* DATA STRUCTURES
*
*
* FUNCTIONS
* int ansi_c_test(int counter)		Entry point for tests
*
* DEPENDENCIES
* act_test.h
******************************************************************************/

#include "act_test.h"

/******************************************************************************
* FUNCTION
* int test_generic(int counter)
*
* DESCRIPTION
* This function will execute all the test that have been specified
* in act_test.h
*
* INPUTS
* int counter				Counter sent from act_target_generic.c
*
* OUTPUTS
* int counter				Counter is returned back to caller
*
******************************************************************************/
int test_generic( int counter )
{
     #if (ACT_STRUCT_POINTER_CHAIN_TEST)
     counter += act_struct_pointer_chain_test(counter);
     #endif
	
     #if (ACT_INLINE_FUNCTION_TEST)
     counter += act_inline_function_test(counter);
     #endif

     #if (ACT_FUNCTION_POINTER_TEST)
     counter += act_function_pointer_test(counter);
     #endif


     #if (ACT_ARRAY_TYPES_TEST)
     counter += act_array_types_test(counter);
     #endif

     #if (ACT_FUNDAMENTAL_TYPES_TEST)
     counter += act_fundamental_types_test(counter);
     #endif

     #if (ACT_STRUCT_DECLARATION_TEST)
     counter += act_struct_declaration_test(counter);
     #endif

     #if ACT_LOCAL_FUNDAMENTAL_ARRAY_TEST
     counter += act_local_fundamental_array_test(counter);
     #endif

     #if (ACT_ENUM_TEST)
     counter += act_enum_test(counter);
     #endif

     #if (ACT_CALL_STACK_TEST)
     counter += act_call_stack_test(counter);
     #endif

     #if (ACT_SCOPE_RULES_TEST)
     counter += act_scope_rules_test(counter);
     #endif

	 return counter;
}
